class Switches:
    #DS2408 input bit mask
    Pir = 0x01  #P0
    Sw1 = 0x04  #P2
    Sw2 = 0x08  #P3
    Sw3 = 0x10  #P4
    Sw4 = 0x20  #P5
    all = [Pir, Sw1, Sw2, Sw3, Sw4]
    names = {Pir : "Pir", Sw1 : "Sw1", Sw2 : "Sw2", Sw3 : "Sw3", Sw4 : "Sw4"}

class Relays:
    #DS2408 relay pin numbers
    Rly1 = 7    #PCB 1wire1 - single relay, 1wire3 - double relay
    Rly2 = 6    #PCB 1wire3 - double relay
    Up   = 0    #PCB 1wire2 - blind controller Upwards
    Dn   = 1    #PCB 1wire2 - blind controller Downwards
    all = [Rly1, Rly2, Up, Dn]
    names = {Rly1 : "Rly1", Rly2 : "Rly2", Up : "Up", Dn : "Dn"}

